<template>
  <div>
    <el-form ref="form" :model="form" label-width="100px">
      <el-form-item label="资产编号" class="item">
        {{form.assetNo}}
      </el-form-item>
      <el-row>
        <el-col :span="10">
          <el-form-item label="仪器名称" class="item">
            {{form.name}}
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-form-item label="原值" class="item">
            {{form.originalValue}}
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="10">
          <el-form-item label="仪器型号" class="item">
            {{form.model}}
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-form-item label="仪器规格" class="item">
            {{form.spec}}
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="10">
          <el-form-item label="数量" class="item">
            {{form.quantity}}
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-form-item label="购买日期" class="item">
           {{form.setUpAccount}}
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="10">
          <el-form-item label="制造商名称" class="item">
            {{form.manufacturer}}
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-form-item label="放置地点" class="item">
            {{form.classRoomId}}
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="10">
          <el-form-item label="项目经费" class="item">
            {{form.fundItem}}
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-form-item label="预算" class="item">
            {{form.budget}}
          </el-form-item>
        </el-col>
      </el-row>
      <el-form-item label="维修原因" class="item">
        {{form.reason}}
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
  export default {
    name: "PreviewDevice",
    data() {
      return {
        open:false,
        // 表单参数
        form: {},
        // 表单校验
        rules: {

        }
      };
    },
    props:{
      device:Object,
    },
    created() {
      if(this.device){
        this.form = this.device;
      }else{
        this.form  = {};
      }
    },
    methods: {
    }
  };
</script>
<style type="text/css" scoped>
  .item {
    margin-bottom: 2px;
  }
</style>
